home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Die Speccy' 97
/
Die Speccy' 97.iso
/
amiga_system
/
the_aminet
/
util
/
libs
/
halt.lzh
/
halt
/
README
< prev
next >
Wrap
Text File
|
1995-10-06
|
2KB
|
34 lines
Short: Shutdown command & library for AmigaDOS
Author: fasten@shw.com (Bernhard Fastenrath)
Uploader: fasten@shw.com (Bernhard Fastenrath)
Replaces: util/libs/shutdown.lzh
Version: 2.0
Type: util/libs
This library was originally released as shutdown.library. It has been
renamed to halt.library because Olaf Barthel (olsen@sourcery.han.de)
wrote a shutdown.library several years ago (util/boot/Shutdown2_0.lha).
Olaf offered me to continue his shutdown.library but I haven't yet
decided how to combine the libraries. They both use different approaches
and have different interfaces to do roughly the same. If one of them
becomes obsolete in future the other one will remain available as a
compatibility interface.
halt.library broadcasts shutdown messages to applications which use it.
Source and binaries for SAS/C and GCC. Recompilation with GCC requires a
patch to libnix (libinit.o) which will be included with libnix 1.1. It may
be distributed under the terms of the GNU Library General Public License.
Included with the library are the shutdown and sdwarn utilities.
Shutdown is a program like the UNIX shutdown command which sends regular
shutdown messages through the halt.library and shuts down the machine after
the given period. A running shutdown can be cancelled with the "-c" option
or by sending a CTRL-C to the running shutdown. The sdwarn program is an
example client for the halt.library which can be used to broadcast messages
to other CLIs. One possible application is to "run sdwarn -c $process" from
the remote-login script of the AmiTCP telnet demon. When started with the
"-c" option sdwarn monitors the CLI specified by the "-c" option and exits
when the CLI has disappeared. This does not work when telnetd is exited
with "q" from the "telnet> " prompt!